const pack = [
  {
    id: 1,
    batch: '20220101',
    principal: '张三',
    place: 'A车间',
    quantity: '500箱',
    date: '2022-01-01',
  },
  {
    id: 2,
    batch: '20220102',
    principal: '李四',
    place: 'B车间',
    quantity: '300箱',
    date: '2022-01-02',
  },
  {
    id: 3,
    batch: '20220103',
    principal: '王五',
    place: 'A车间',
    quantity: '200箱',
    date: '2022-01-03',
  },
  {
    id: 4,
    batch: '20220104',
    principal: '赵六',
    place: 'B车间',
    quantity: '400箱',
    date: '2022-01-04',
  },
  {
    id: 5,
    batch: '20220105',
    principal: '刘七',
    place: 'B车间',
    quantity: '150箱',
    date: '2022-01-05',
  },
  {
    id: 6,
    batch: '20220106',
    principal: '陈八',
    place: 'A车间',
    quantity: '500箱',
    date: '2022-01-06',
  },
];

export default {
  'GET /api/pack': (req: any, res: any) => {
    res.json({
      success: true,
      data: { pack },
      errorCode: 0,
    });
  },
};
